package com.decent.ejfadmin.common.bean;

import com.decent.ejfadmin.common.enums.WithdrawLogTypeEnum;
import lombok.Data;

/**
 * describe:操作日志
 *
 * @author JunLei He
 * @date 2018年11月21日
 */
@Data
public class WithdrawLog {
    /**
     * 操作失败
     */
    private String operateTime;
    /**
     * 操作人
     */
    private String admin;
    /**
     * 提现记录Id
     */
    private Long withdrawId;
    /**
     * 操作状态  1 审核成功;2审核失败;3 再次转账;4处理失败;5 处理成功;6处理为异常
     */
    private Integer status;
    /**
     * 日志类型
     */
    private WithdrawLogTypeEnum type;
    /**
     * 原始状态
     */
    private Integer oldStatus;
    /**
     * 备注
     */
    private String remark;

    public WithdrawLog() {
    }

    public WithdrawLog(String admin, Long withdrawId, Integer status, WithdrawLogTypeEnum type) {
        this.admin = admin;
        this.withdrawId = withdrawId;
        this.status = status;
        this.type = type;
    }

    public WithdrawLog(String admin, Long withdrawId, Integer newStatus, Integer oldStatus, WithdrawLogTypeEnum type) {
        this.admin = admin;
        this.withdrawId = withdrawId;
        this.status = newStatus;
        this.type = type;
        this.oldStatus = oldStatus;
    }

    public WithdrawLog(String admin, Long withdrawId, Integer newStatus, Integer oldStatus, WithdrawLogTypeEnum type, String remark) {
        this.admin = admin;
        this.withdrawId = withdrawId;
        this.status = newStatus;
        this.type = type;
        this.oldStatus = oldStatus;
        this.remark = remark;
    }
}
